const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  productionSourceMap: false,
  transpileDependencies: true,
  lintOnSave: false,
  // 代理跨域
  devServer: {
    proxy: {
      '/api': {
        target: 'http://sph-api.atguigu.cn',
        changeOrigin: true,
      }
    },
    client: {
      overlay: false, // 禁用错误覆盖层
    },
  }
})
